package chapter13;

import chapter11.EX27.Test;

import java.util.Scanner;

/**
 * Created by Caesar on 2016/2/25.
 */
public class Test20 {
    int num1;
    long num2;
    float num3;
    double num4;
    String str;

    public Test20(String s) {
        Scanner scan = new Scanner(s);
        this.num1 = scan.nextInt();
        this.num2 = scan.nextLong();
        this.num3 = scan.nextFloat();
        this.num4 = scan.nextDouble();
        this.str = scan.next();
    }

     public String toString(){
        return "num1= "+num1+" num2= "+num2+" num3= "+num3+" num4= "+num4+" "+str;
    }

    public static void main(String[] args) {
        Test20 test = new Test20("1 2 5.5 10.187458974 jkhfgkljhkj");
        System.out.println(test);
    }
}
